<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseOrderItemBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseOrderItemBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Pc Purchase Order Item"/>

	<ui:define name="header">
		Pc Purchase Order Item
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty pcPurchaseOrderItemBean.id}">
				Edit existing Pc Purchase Order Item
			</c:when>
			<c:otherwise>
				Create a new Pc Purchase Order Item
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemSysUom" value="Sys Uom:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysUomBean.converter}" id="pcPurchaseOrderItemBeanPcPurchaseOrderItemSysUom" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.sysUom}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysUomBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemSysUom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemMmItem" value="Mm Item:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmItemBean.converter}" id="pcPurchaseOrderItemBeanPcPurchaseOrderItemMmItem" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.mmItem}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemMmItem" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPcPurchaseOrder" value="Pc Purchase Order:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{pcPurchaseOrderBean.converter}" id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPcPurchaseOrder" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.pcPurchaseOrder}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseOrderBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPcPurchaseOrder" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoSupplierItemCode" value="Po Supplier Item Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoSupplierItemCode" maxLength="50" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poSupplierItemCode}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoSupplierItemCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoItemCode" value="Po Item Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoItemCode" maxLength="50" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poItemCode}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoItemCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoItemDescr" value="Po Item Descr:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoItemDescr" maxLength="300" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poItemDescr}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoItemDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoQty" value="Po Qty:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoQty" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poQty}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoQty" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoPpu" value="Po Ppu:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoPpu" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poPpu}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoPpu" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoStatusIncVat" value="Po Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoStatusIncVat" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poStatusIncVat}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoVatPercVal" value="Po Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoVatPercVal" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poVatPercVal}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoVatVal" value="Po Vat Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoVatVal" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poVatVal}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoVatVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoTotalPriceExcVat" value="Po Total Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoTotalPriceExcVat" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poTotalPriceExcVat}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoTotalPrice" value="Po Total Price:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoTotalPrice" required="true" value="#{pcPurchaseOrderItemBean.pcPurchaseOrderItem.poTotalPrice}"/>
					<h:message for="pcPurchaseOrderItemBeanPcPurchaseOrderItemPoTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{pcPurchaseOrderItemBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty pcPurchaseOrderItemBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{pcPurchaseOrderItemBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{pcPurchaseOrderItemBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>